﻿		<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:HabilisDesign_Iota_Properties="clr-namespace:HabilisDesign.Iota.Properties"
    xmlns:HabilisDesign_Iota="clr-namespace:HabilisDesign.Iota;assembly=Core"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    x:Class="HabilisDesign.Iota.MainWindow"
    Title="Iota" Height="420" Width="400" x:Name="DefaultWindow" ResizeMode="NoResize" Style="{DynamicResource BaseWindow}" BorderThickness="5,5,3,5" Background="{x:Null}" SizeToContent="WidthAndHeight" MouseLeftButtonDown="BeginMove" MaxHeight="{Binding Path=Height, ElementName=DefaultWindow, Mode=Default}" MaxWidth="{Binding Path=Width, ElementName=DefaultWindow, Mode=Default}" AllowsTransparency="True" WindowStyle="None">
    <Window.Resources>
		<ObjectDataProvider x:Key="TwitterGatewayDS" d:IsDataSource="True" ObjectType="{x:Type HabilisDesign_Iota:TwitterGateway}"/>
    </Window.Resources>

    <Grid x:Name="Main" Grid.Row="0" Opacity="1" HorizontalAlignment="Stretch" Width="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*"/>
      	<ColumnDefinition Width="25"/>
      </Grid.ColumnDefinitions>
    	<Button HorizontalAlignment="Right" Margin="0,5,0,0" x:Name="CloseButton" Style="{DynamicResource SystemButton}" VerticalAlignment="Top" Width="20" Height="20" Content="" Grid.Column="2" Click="Close"/>
    	<Button x:Name="MinimizeButton" Style="{DynamicResource MinimizeButton}" Height="20" Content="" Click="Minimize" Margin="0,30,0,0" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Right" Width="20"/>
    	<Border Background="{DynamicResource MainBGBrush}" BorderBrush="#FF000000" BorderThickness="3,3,3,3" CornerRadius="8,8,8,8" Padding="5,5,5,5">
    		<Grid x:Name="ContentGrid" Width="Auto" Height="Auto">
    			<Grid.ColumnDefinitions>
    				<ColumnDefinition Width="80"/>
    				<ColumnDefinition Width="*"/>
    			</Grid.ColumnDefinitions>
    			<Grid.RowDefinitions>
    				<RowDefinition Height="*"/>
    				<RowDefinition Height="67"/>
    			</Grid.RowDefinitions>
    			<Button x:Name="ScrollUpButton" Content="&lt;" Visibility="Hidden" ClickMode="Hover" RenderTransformOrigin="0.5,0.5" Style="{DynamicResource ScrollButton}" VerticalAlignment="Top" Height="21.277" Grid.ColumnSpan="2"/>
    			<ListView x:Name="StatusViewer" IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderThickness="0,0,0,0" HorizontalContentAlignment="Center" Panel.ZIndex="0" Grid.ColumnSpan="2" Grid.IsSharedSizeScope="False" Grid.RowSpan="1" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Hidden" Background="{x:Null}" Foreground="{x:Null}" Style="{DynamicResource StatusListViewer}" BorderBrush="{x:Null}" Focusable="True" IsHitTestVisible="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="0,20,0,20">
					<ListView.ItemContainerStyle>
						<Style TargetType="{x:Type ListViewItem}">
							<Setter Property="Template" Value="{DynamicResource StatusItemTemplate}"/>
						</Style>
					</ListView.ItemContainerStyle>
				</ListView>
    			<Button x:Name="ScrollDownButton" Content="&gt;" Visibility="Hidden" ClickMode="Hover" Margin="0,61.107,0,0" Style="{DynamicResource ScrollButton}" VerticalAlignment="Bottom" Height="21.276" Grid.ColumnSpan="2"/>
    			<TextBox KeyUp="CheckForSubmit" AllowDrop="True" Cursor="IBeam" Margin="5,8,10,8" x:Name="UpdateBox" ToolTip="Enter text here." TabIndex="0" TextWrapping="Wrap" SpellCheck.IsEnabled="True" MaxLength="{Binding Path=TweetMaxCount, Mode=Default, Source={StaticResource TwitterGatewayDS}}" Grid.Row="1" AcceptsReturn="False" AutoWordSelection="True" IsEnabled="True" Style="{DynamicResource StatusUpdateBox}" Text="" Grid.Column="1"/>
    			<Button Style="{DynamicResource HomeButtonStyle}" Content="images\Customize.ico" x:Name="HomeButton" Click="NavigateHome" HorizontalAlignment="Left" Margin="5,26,0,5" ToolTip="Navigate to home page" VerticalAlignment="Bottom" Grid.Row="1">
    				<Button.RenderTransform>
    					<TransformGroup>
    						<ScaleTransform ScaleX="1" ScaleY="1"/>
    						<SkewTransform AngleX="0" AngleY="0"/>
    						<RotateTransform Angle="0"/>
    						<TranslateTransform X="0" Y="0"/>
    					</TransformGroup>
    				</Button.RenderTransform>
    			</Button>
    			<Button Style="{DynamicResource RoundButton}" Content="images\Customize.ico" Margin="0,26,0,5" x:Name="SettingButton" Grid.Row="1" Click="ShowSettings" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="Auto" Height="Auto" Grid.Column="0" ToolTip="Open settings window">
    				<Button.RenderTransform>
    					<TransformGroup>
    						<ScaleTransform ScaleX="1" ScaleY="1"/>
    						<SkewTransform AngleX="0" AngleY="0"/>
    						<RotateTransform Angle="0"/>
    						<TranslateTransform X="0" Y="0"/>
    					</TransformGroup>
    				</Button.RenderTransform>
    			</Button>
    		</Grid>
    	</Border>
    </Grid>
   	
	
  </Window>
